/*
    首页的路由
*/
const home = () => import(/*webpackChunkName:"name"*/'../view/home')
const homeContent = () => import(/*webpackChunkName:"name"*/'../view/home/content')
const setting = () => import(/*webpackChunkName:"name"*/'../view/home/setting')
const settingContent = () => import(/*webpackChunkName:"name"*/'../view/home/setting/content')
const settingCompanyMsg = () => import(/*webpackChunkName:"name"*/'../view/home/setting/company-msg')
const settingChangePassword = () => import(/*webpackChunkName:"name"*/'../view/home/setting/change-password')
const msg = () => import(/*webpackChunkName:"name"*/'../view/home/msg')
const msgContent = () => import(/*webpackChunkName:"name"*/'../view/home/msg/content')
const msgDetail = () => import(/*webpackChunkName:"name"*/'../view/home/msg/detail')
const homeRouter = 
    {
        path: 'home',
        component: home,
        meta: {
          title: '首页'
        },
        children: [
          {
            path: '',
            component: homeContent,
            meta: {
                title: '首页',
                baiseRouter: true
            }
          },
          {
            path: 'setting',
            component: setting,
            meta: {
              title: '设置'
            },
            children: [
                {
                  path: '',
                  component: settingContent,
                  meta: {
                    baiseRouter: true
                  },
                  children: [
                    {
                      path: '',
                      component: settingChangePassword,
                      meta: {
                        title: '修改密码'
                      }
                    },
                    {
                      path: 'change-phone',
                      component: () => import(/*webpackChunkName:"name"*/'../view/home/setting/change-phone'),
                      meta: {
                        title: '修改手机号'
                      }
                    }
                  ]
                },
                {
                  path: 'verification-password',
                  component: () => import(/*webpackChunkName:"name"*/'../view/home/setting/verification-password'),
                  meta: {
                    title: '验证密码'
                  }
                },
                {
                  path: 'company-msg',
                  component: settingCompanyMsg,
                  meta: {
                     title: '企业信息'
                  }
                },
               
            ]
          },
          
          {
            path: 'msg',
            component: msg,
            meta: {
              title: '消息'
            },
            children: [
                {
                    path: '',
                    component: msgContent,
                    meta: {
                        title: '消息',
                        baiseRouter: true
                    }
                },
                {
                    path: 'detail',
                    name: 'msgDetail',
                    component: msgDetail,
                    meta: {
                        title: '详情'
                    }
                }
            ]
          }
        ]
    }
    export default homeRouter